03. Writing Code with DB API

Writing Code with DB API

INSTRUCTOR NOTE:

The connect function for PostgreSQL uses a different argument syntax from the one for SQLite. When you want to connect to a database called, say, bears, you'll use psycopg2.connect("dbname=bears").